BuffEffect21 = BaseBuffEffect:new();
BuffEffect21.__index = BuffEffect21;

function BuffEffect21:new()
    local object = {};
    setmetatable(object, BuffEffect21);
    return object;
end

function BuffEffect21:add(fight,buff)
    return BaseBuffEffect:add(fight,buff)
end

function BuffEffect21:action(fight,buff,...)
    local fighter = buff.target;
    local values = decodeJsonStrToTabel(buff.buffBean.f_BuffEffectValue);
    local maxHp = FighterAttributeManager.getFightAttr(fighter, EnumConst.FighterAttributeEnum.HP);
    fighter:setHP(values[1],maxHp);
    return BaseBuffEffect:action(fight, buff, ...);
end
